extends "../haiwangxing-2/haiwangxing-2.gd"


func _extInit():
	._extInit()

	lv = 3             #等级的设置
	addSkill("被治疗的单位获得3秒<海之祝福>(减少20%所受伤害)", "海神祝福")


func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType == sys.AtkType.GUN and hasBuff("b_hwx") == null:
		atkInfo.hitCha.addBuff(b_hwx.new(3))

class b_hwx:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init(lv = 1):
		attInit()
		id = "b_hwx"
		life = lv
		buffName = "海神祝福"
	func _connect():
		masCha.connect("onHurt",self,"run")
	func run(atkInfo):
		atkInfo.hurtVal *= 0.8